package com.bayern.muchen.blog.entity;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author QIUYANG
 * @title: Article
 * @description: 文章表
 * @date 12/1/20214:37 PM
 */
public class Article {
    /**
     * id
     */
    private int blogId;
    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空")
    private String blogContent;
    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    private String blogTitle;
    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空")
    private String blogDescription;
    /**
     * 首图
     */
    @NotBlank(message = "首图不能为空")
    private String blogPicture;
    /**
     * 分类id
     */
    @NotBlank(message = "分类id不能为空")
    private int typeId;
    /**
     * 用户id
     */
    @NotBlank(message = "用户id不能为空")
    private int uId;
    /**
     * 是否被删除1是0否 数据库is_deleted
     */
    private Boolean deleted;
    /**
     * 是否发布1是0否
     */
    @NotBlank(message = "是否发布不能为空")
    private Boolean blogPublish;
    /**
     * 创建时间
     */
    private Date gmtCreate;
    /**
     * 修改时间
     */
    private Date gmtModified;

    public int getBlogId() {
        return blogId;
    }

    public void setBlogId(int blogId) {
        this.blogId = blogId;
    }

    public String getBlogContent() {
        return blogContent;
    }

    public void setBlogContent(String blogContent) {
        this.blogContent = blogContent;
    }

    public String getBlogTitle() {
        return blogTitle;
    }

    public void setBlogTitle(String blogTitle) {
        this.blogTitle = blogTitle;
    }

    public String getBlogDescription() {
        return blogDescription;
    }

    public void setBlogDescription(String blogDescription) {
        this.blogDescription = blogDescription;
    }

    public String getBlogPicture() {
        return blogPicture;
    }

    public void setBlogPicture(String blogPicture) {
        this.blogPicture = blogPicture;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public int getuId() {
        return uId;
    }

    public void setuId(int uId) {
        this.uId = uId;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Boolean getBlogPublish() {
        return blogPublish;
    }

    public void setBlogPublish(Boolean blogPublish) {
        this.blogPublish = blogPublish;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}
